package org.zfes.snowier.zbss.xzy.biz.device.model;
import org.zfes.snowier.core.data.IBaseModel;
public class DeviceAttrValue extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public DeviceAttrValue() {}
	public DeviceAttrValue(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 

	@javax.validation.constraints.NotNull(message="默认所属租户不能为空")

	  private java.lang.Long tenantId;
	@javax.validation.constraints.NotNull(message="设备不能为空")
	  private java.lang.Long deviceId;
	@javax.validation.constraints.NotNull(message="属性不能为空")
	  private java.lang.Long attrId;
	  private java.lang.Byte status;
	  private java.util.Date createTime;
	  private java.util.Date updateTime;
	@javax.validation.constraints.NotBlank(message="属性值不能为空")
	@javax.validation.constraints.NotNull(message="属性值不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=2147483647,message="属性值长度不能大于2,147,483,647")
	  private java.lang.String attrValue;
 
	
	//<-------------------------------------------->
	public DeviceAttrValue setTenantId(java.lang.Long tenantId){
	 this.tenantId=tenantId;
	 return this;
	}
	public java.lang.Long getTenantId(){
		return this.tenantId;
	}
	public DeviceAttrValue setDeviceId(java.lang.Long deviceId){
	 this.deviceId=deviceId;
	 return this;
	}
	public java.lang.Long getDeviceId(){
		return this.deviceId;
	}
	public DeviceAttrValue setAttrId(java.lang.Long attrId){
	 this.attrId=attrId;
	 return this;
	}
	public java.lang.Long getAttrId(){
		return this.attrId;
	}
	public DeviceAttrValue setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public DeviceAttrValue setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public DeviceAttrValue setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public DeviceAttrValue setAttrValue(java.lang.String attrValue){
		this.attrValue=attrValue==null?null:attrValue.trim();
	 return this;
	}
	public java.lang.String getAttrValue(){
		return this.attrValue;
	}
	@Override
	public String toString() {
		return "DeviceAttrValue [tenantId=" + tenantId + ", deviceId=" + deviceId + ", attrId=" + attrId + ", status="
				+ status + ", createTime=" + createTime + ", updateTime=" + updateTime + ", attrValue=" + attrValue
				+ "]";
	}

}
